package com.jjb.www.http.api;

import com.hjq.http.annotation.HttpIgnore;
import com.hjq.http.config.IRequestApi;

import java.util.List;

/**
 * @author CRG
 * @date :2023/12/25 17:25
 * @description:
 */
public class ExamMessageApi implements IRequestApi {
    @HttpIgnore
    private String pagerId;
    private String exam_type;
    private String paper_id;

    public ExamMessageApi setPagerId(String pagerId) {
        this.pagerId = pagerId;
        return this;
    }

    public ExamMessageApi setExam_type(String exam_type) {
        this.exam_type = exam_type;
        return this;
    }

    public ExamMessageApi setPaper_id(String paper_id) {
        this.paper_id = paper_id;
        return this;
    }

    @Override
    public String getApi() {
        return "/api/question/v2/paper/examMessage/"+pagerId;
    }
    public static class Bean{

        private PaperInfoDTO paper_info;
        private List<FillListDTO> fill_list;

        public PaperInfoDTO getPaper_info() {
            return paper_info;
        }

        public void setPaper_info(PaperInfoDTO paper_info) {
            this.paper_info = paper_info;
        }

        public List<FillListDTO> getFill_list() {
            return fill_list;
        }

        public void setFill_list(List<FillListDTO> fill_list) {
            this.fill_list = fill_list;
        }

        public static class PaperInfoDTO {
            private Integer id;
            private Integer sentry_id;
            private Integer total_num;
            private Integer exam_type;
            private Integer sur_time;
            private String sentry_name;

            public Integer getId() {
                return id;
            }

            public void setId(Integer id) {
                this.id = id;
            }

            public Integer getSentry_id() {
                return sentry_id;
            }

            public void setSentry_id(Integer sentry_id) {
                this.sentry_id = sentry_id;
            }

            public Integer getTotal_num() {
                return total_num;
            }

            public void setTotal_num(Integer total_num) {
                this.total_num = total_num;
            }

            public Integer getExam_type() {
                return exam_type;
            }

            public void setExam_type(Integer exam_type) {
                this.exam_type = exam_type;
            }

            public Integer getSur_time() {
                return sur_time;
            }

            public void setSur_time(Integer sur_time) {
                this.sur_time = sur_time;
            }

            public String getSentry_name() {
                return sentry_name;
            }

            public void setSentry_name(String sentry_name) {
                this.sentry_name = sentry_name;
            }
        }

        public static class FillListDTO {
            private Integer type;
            private Integer type_num;
            private String type_test;
            private Integer type_number_score;
            private List<NumberListDTO> number_list;

            public Integer getType() {
                return type;
            }

            public void setType(Integer type) {
                this.type = type;
            }

            public Integer getType_num() {
                return type_num;
            }

            public void setType_num(Integer type_num) {
                this.type_num = type_num;
            }

            public String getType_test() {
                return type_test;
            }

            public void setType_test(String type_test) {
                this.type_test = type_test;
            }

            public Integer getType_number_score() {
                return type_number_score;
            }

            public void setType_number_score(Integer type_number_score) {
                this.type_number_score = type_number_score;
            }

            public List<NumberListDTO> getNumber_list() {
                return number_list;
            }

            public void setNumber_list(List<NumberListDTO> number_list) {
                this.number_list = number_list;
            }

            public static class NumberListDTO {
                //序号
                private Integer order_number;
                //是否标记
                private Integer is_sign;
                //是否答题
                private Integer is_answer;

                public Integer getOrder_number() {
                    return order_number;
                }

                public void setOrder_number(Integer order_number) {
                    this.order_number = order_number;
                }

                public Integer getIs_sign() {
                    return is_sign;
                }

                public void setIs_sign(Integer is_sign) {
                    this.is_sign = is_sign;
                }

                public Integer getIs_answer() {
                    return is_answer;
                }

                public void setIs_answer(Integer is_answer) {
                    this.is_answer = is_answer;
                }
            }
        }
    }
}
